package com.bbc.base;

import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.FragmentActivity;

import butterknife.ButterKnife;

/**
 * Created by Administrator on 2017/9/26.
 */

public abstract class BaseFragmentActivity extends FragmentActivity {
    public Context mContext;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        ButterKnife.bind(this);
        mContext = getApplicationContext();
        findViewId();
        initData();
        setListeners();
    }

    protected abstract void setListeners();

    protected abstract void initData();

    protected abstract void findViewId();
}
